package train48days;
import java.util.*;
public class 解读密码 {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNext()) {
                String str = sc.nextLine();
                for (int i = 0; i < str.length(); i++) {
                    if (str.charAt(i) >= '0' && str.charAt(i) <= '9') {
                        System.out.print(str.charAt(i));
                    }
                }
                System.out.println();
            }
        }
    }

